package com.module.controller;


import com.module.framework.domain.ResponseResult;
import com.module.framework.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/staff")
public class StaffController {

    @Autowired
    StaffService staffService;

    @GetMapping("/info")
    public ResponseResult getStaffInfo(String snCode) {
        return ResponseResult.okResult(staffService.getStaffInfo(snCode));
    }

}
